<?php

/**
* @package		auto_occasion
* @subpackage 	commun
* @version      1
* @author       CMS
*/


/**
* Zone affichant le  menu haut  du backoffice
*
* @package auto_occasion
* @subpackage commun
*/
class BoTopMenuZone extends jZone {
 
	protected $_tplname='commun~BoTopMenu.zone';

	/**
	* Chargement des données pour affichage
	*/
	protected function _prepareTpl(){
        $menu = array(
                    "1"=>"menuOperateur",
                    "2"=>"menuAnnonce",
                    "3"=>"menuTarif",
                    "4"=>"menuIllustration",
                    "5"=>"menuLienUtile",
                    "6"=>"menuTemoignage",
                    "7"=>"menuPartenaire",
                    "8"=>"menuPub",
                    "9"=>"menuActu",
                    "10"=>"menuEntreprise",
                    "11"=>"menuStatistique",
                    "12"=>"menuMarqueModele",
                    "13"=>"menuFiches",
                    "16"=>"menuParution"
                );

		$menuActif = $this->param('menusActifs');
        
        foreach ($menu as $k=>$val) {
            if ($menuActif == $k) {
                ${$val} = "current";
            } else {
                ${$val} = "";
            }
       		$this->_tpl->assign("$val", ${$val});
        }

	}
}